package chainofresponsibility;

public class FanHandler extends Handler {

    @Override
    public void handleRequest(Email email) {
        if (EmailEnum.FAN_EMAIL.equals(email.getType())) {
            System.out.println("Receive fan email: \n" + email.getContent());
        } else {
            successor.handleRequest(email);
        }
    }
}
